<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>余额查询</title>

    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
</head>
<body>
<div class="layuimini-container">
    <div class="layuimini-main">

        <div class="layui-fluid">
            <div class="layui-card">
                <div class="layui-card-body" style="padding-top: 40px;">
                    <div class="layui-carousel" id="stepForm" lay-filter="stepForm" style="margin: 0 auto;">
                        <div carousel-item>
                            <div>
                            </div>
                            <div>
                                <form class="layui-form" style="margin: 0 auto;max-width: 460px;padding-top: 40px;">

                                    <div class="layui-form-item" id="app">

                                        <label class="layui-form-label">余额:</label>
                                        <div class="layui-input-block">
                                            <div class="layui-form-mid layui-word-aux">{{money.data}}元</div>
                                        </div>
                                    </div>




                                    <div class="layui-form-item">

                                    </div>
                                </form>
                            </div>

                        </div>
                    </div>
                    <hr>

                </div>
            </div>
        </div>

    </div>
</div>

<script  th:src="@{/js/vue-min.js}" src="../../static/js/vue-min.js"></script>
<script th:src="@{/js/axios.min.js}" src="../../static/js/axios.min.js"></script>
<script>

    new Vue({
        el:"#app",
        data:{
            money:{}
        },
        //mounted 页面加载后，自动执行的函数
        mounted:function(){
            axios.post("/ecis/balance-info")
                .then( resp=> this.money=resp.data )//then接受结果，然后对响应进行处理
        },
    })

</script>
</body>
</html>